import Form from '@/Form';
import { Button, Input } from 'antd';

export default function form() {
  return (
    <div>
      <Form>
        <Form.Item name={'name'} label={'姓名'}>
          <Input />
        </Form.Item>
        <Form.Item name={'password'} label={'密码'}>
          <Input type={'password'} />
        </Form.Item>
        <Form.Item>
          <div style={{ marginTop: 10 }}>
            <Button type="primary" htmlType="submit">
              提交
            </Button>
          </div>
        </Form.Item>
      </Form>
    </div>
  );
}
